import React from 'react';
import { Form } from 'antd';
import { AxInput, AxSelectSearch } from '@/components/AxForm/AxFormItem';
import { AxAdvancedSearchDrawer } from '@/components/AxForm/AxSearchForm/AxAdvancedSearchDrawer';

const Search: React.FC<any> = props => {
    const { form, values = {}, ...rest } = props;

    return (
        <AxAdvancedSearchDrawer
            form={form}
            {...rest}
        >
            <AxInput
                form={form}
                label="姓名"
                field="name"
                value={values.campusId}
                wholerow='none'
                required
            />
            <AxSelectSearch
                form={form}
                label="类型"
                field="campusId"
                // data={campus}
                value={values.campusId}
                wholerow='none'
            />
        </AxAdvancedSearchDrawer>
    );
};

export default Form.create<any>()(Search);
